﻿using System;
using System.Configuration;
using System.Collections.Generic;

using SBPweb.Communication.Shared.Library.Contacts;

using SBPweb.Communication.Client.Library.Xmpp.Configuration;

namespace SBPweb.Communication.Client.Library.Xmpp.Contacts
{

    public partial class ContactManagerConfigurationParser : ConfigurationParserBase, IContactManagerConfiguration
    {

        #region Constructor logic

        public ContactManagerConfigurationParser(IDictionary<string, string> parameters)
            : base(parameters)
        {
        }

        #endregion

        #region Property accessors

        protected override string Prefix
        {
            get
            {
                return "ContactManager";
            }
        }

        public bool GetContactListWhenConnected
        {
            get
            {
                return GetValue<bool>("getContactListWhenConnected", true);
            }
        }

        #endregion

    }

}